<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>Crew Intranet: HRMS - Human Ressources Mangement System</title>
                <link href="./ressources/authStyle.css" rel="stylesheet" type="text/css" />
            </f:facet>

        </h:head> 

        <h:body>
            <dir id="styleConnexion">
                <h:form id="formMessage">
                    <p:growl id="messageGrow" /> 
                </h:form>
                <h:form id="formConnextion" styleClass="login">
                    <h1>Log In</h1>
                    <fieldset id="inputs">
                        <p:inputText id="username" value="#{connexionBean.usersLogin.login}" required="true" requiredMessage="Le Champs Identifiant  est obligatoire!"/>
                        <p:watermark for="username" value="Login" />
                        <p:password id="password" value="#{connexionBean.usersLogin.pass}" required="true" requiredMessage="Le Champs Mots de passe  est obligatoire!"/>
                        <p:watermark for="password" value="Password" />
                    </fieldset>
                    <fieldset id="actions">
                        <p:commandButton value="Connexion" action="#{connexionBean.login}" 
                                         update=":formConnextion, :formMessage "
                                         icon="ui-icon-key"/>
                    </fieldset>

                </h:form>
            </dir>
        </h:body>

    </f:view>
</html>

